package com.lx.pc.mybatis.repository.quotationanalysis;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.mybatis.repository.annotation.Query;
import org.springframework.data.mybatis.repository.support.MybatisRepository;

import com.lx.pc.domain.entity.quotationanalysis.QuotationanalysisEntity;

public interface QuotationanalysisRepository extends MybatisRepository<QuotationanalysisEntity, BigInteger>{

	/**
	 * 查询总数
	 */
	@Query("findByQuotationanalysisCount")
	public int findByQuotationanalysisCount(QuotationanalysisEntity quotationanalysis);
	
	/**
	 * 查询分页
	 * @param InformationEntity
	 * @param page
	 * @param size
	 * @return
	 */
	@Query("findByQuotationanalysis")
	public List<QuotationanalysisEntity> findByQuotationanalysis(QuotationanalysisEntity quotationanalysis,Integer page,Integer size);
	
	/**
	 * 详情查看
	 * @param id
	 * @return
	 */
	@Query("findByQuotationanalysisId")
	public QuotationanalysisEntity findByQuotationanalysisId(BigInteger id);
}
